package com.oig.base.api.factory;

import com.oig.base.api.EnumService;
import com.oig.base.api.fallback.EnumServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class EnumServiceFallBackFactory implements FallbackFactory<EnumService> {

    @Override
    public EnumService create(Throwable cause) {
        EnumServiceFallBackImpl enumServiceFallBack = new EnumServiceFallBackImpl();
        enumServiceFallBack.setCause(cause);
        return enumServiceFallBack;
    }

}
